package com.shiwaixiangcun.customer.module.houserenting;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shiwaixiangcun.customer.R;

import java.util.List;

/**
 * Author   Administrator
 * Date     2018/1/25
 * Desc     eg
 *
 * @author Administrator
 */

public class AttrsAdapter extends BaseQuickAdapter<AttrEntity, BaseViewHolder> {
    public AttrsAdapter(@Nullable List<AttrEntity> data) {
        super(R.layout.tag_house_attr, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AttrEntity item) {
        helper.setText(R.id.tv_tag, item.getName());
        ImageView ivCover = helper.getView(R.id.iv_icon);
        Glide.with(mContext).load(item.getIcon()).into(ivCover);
    }
}